package day01;

import java.util.Scanner;

public class scannerdemo {
    public static void main(String[] args) {
        Scanner sc =new Scanner(System.in);
        System.out.println("请输入第一个数字");
        int num1= sc.nextInt();
        System.out.println("请输入第二个数字");
        int num2= sc.nextInt();
        System.out.println("请输入第三个数字");
        int num3= sc.nextInt();
        int tmp;
        tmp=num1>num2?num1:num2;
        int max=num3>tmp?num3:tmp;
        System.out.println("最大值为"+max);
    }
}
